package com.mutual.reins.interf.mapper;

import com.mutual.reins.interf.entity.ReinsPolicyUnit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 投保单/保单中间表主表
 Mapper 接口
 * </p>
 *
 * @author CodeGenerate
 * @since 2021-03-31
 */
public interface ReinsPolicyUnitMapper extends BaseMapper<ReinsPolicyUnit> {
    /**
     * 获取是否第一次批改
     * @param policyNo 保单号
     * @param endorNo 批单号
     * @return 返回是否第一次批改
     */
    List<ReinsPolicyUnit> reinsPolicyUnitList(String policyNo, String endorNo);

    /**
     * 根据投保单号查询一条数据
     * @param proposalNo 投保单号
     * @return 投保单/保单中间表主表
     */
    ReinsPolicyUnit selectReinsPolicyUnit(String proposalNo);
}
